package com.raptor.trustworthy.task.model;

import com.raptor.trustworthypojo.pojo.ScheduleJobInfo;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 定时任务模型
 *
 * @Author renhuan
 * @Date 2021-03-27 15:47
 **/
public class ScheduleJob extends ScheduleJobInfo {

  /** 任务id ,自增长*/
  private Long id;
  /** 任务名称 */
  private String jobName;
  /** 任务分组 */
  private String jobGroup;
//  /** 任务状态 0禁用 1启用 */
//  private String state;
  /** 任务运行时间表达式 */
  private String cronExpression;
  /** 任务描述 */
  private String description;
  /** 调用地址 */
  private String serverUrl;
  /** 调用方式 */
  private String sendMode;
  /** 操作员工号 */
  private Long staffId;
  /** 更新时间 */
  private String updateTime;
  /** 下次执行时间*/
  private String nextFireTime;

//  @Transient
//  private String runtime;
  private String remark;


  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }


//  public String getState() {
//    return state;
//  }
//
//  public void setState(String state) {
//    this.state = state;
//  }

  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public Long getStaffId() {
    return staffId;
  }

  public void setStaffId(Long staffId) {
    this.staffId = staffId;
  }

  public String getJobName() {
    return jobName;
  }

  public void setJobName(String jobName) {
    this.jobName = jobName;
  }

  public String getJobGroup() {
    return jobGroup;
  }

  public void setJobGroup(String jobGroup) {
    this.jobGroup = jobGroup;
  }

  public String getCronExpression() {
    return cronExpression;
  }

  public void setCronExpression(String cronExpression) {
    this.cronExpression = cronExpression;
  }

  public String getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(String updateTime) {
    this.updateTime = updateTime;
  }

  public String getNextFireTime() {
    return nextFireTime;
  }

  public void setNextFireTime(String nextFireTime) {
    this.nextFireTime = nextFireTime;
  }

  public String getRemark() {
    return remark;
  }

  public void setRemark(String remark) {
    this.remark = remark;
  }

  public String getServerUrl() {
    return serverUrl;
  }

  public void setServerUrl(String serverUrl) {
    this.serverUrl = serverUrl;
  }

  public String getSendMode() {
    return sendMode;
  }

  public void setSendMode(String sendMode) {
    this.sendMode = sendMode;
  }
}

